package ioc06;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.swing.*;

/**
 * Author：汤小洋
 * Date：2023-07-04 11:14
 * Description：<描述>
 */
public class MyUtil {

    public static void print(){
        SpringBean springBean = (SpringBean) ApplicationContextHolder.getBean("springBean");
        System.out.println(springBean.getName());
    }
}
